API Documentation
TextureManager.h
1 // TextureManager.h
3 //
5 
6 namespace nkGraphics
7 {
13  class DLL_GRAPHICS_EXPORT TextureManager final : public nkCommon::SingletonClass<TextureManager>
14  {
15  public :
16 
21 
28  Texture* createOrRetrieve (const std::string_view& name) ;
35  Texture* get (const std::string_view& name) ;
44  Texture* getByIndex (unsigned int id) ;
51  void rename (const std::string_view& currentName, const std::string_view& newName) ;
57  void erase (const std::string_view& name) ;
58 
65  void setActiveRenderTarget (Texture* target) ;
72  void setActiveDepthTarget (Texture* target) ;
80  Texture* getDepthTarget () const ;
81  } ;
82 }
nkGraphics::TextureManager::rename
void rename(const std::string_view &currentName, const std::string_view &newName)
nkGraphics::Texture
A texture used for rendering, hosted on GPU.
Definition: Texture.h:35
nkGraphics::TextureManager::setActiveRenderTarget
void setActiveRenderTarget(Texture *target)
nkGraphics::TextureManager::getByIndex
Texture * getByIndex(unsigned int id)
nkGraphics::TextureManager::getActiveRenderTarget
Texture * getActiveRenderTarget() const
nkGraphics::TextureManager::~TextureManager
~TextureManager()
nkGraphics::TextureManager::erase
void erase(const std::string_view &name)
nkGraphics::TextureManager::createOrRetrieve
Texture * createOrRetrieve(const std::string_view &name)
nkGraphics::TextureManager::getDepthTarget
Texture * getDepthTarget() const
nkGraphics::TextureManager::get
Texture * get(const std::string_view &name)
nkGraphics::TextureManager
Manages the textures available in the component.
Definition: TextureManager.h:14
nkGraphics::TextureManager::setActiveDepthTarget
void setActiveDepthTarget(Texture *target)
nkGraphics
Encompasses all API of component NilkinsGraphics.
Definition: BoundingBox.h:7